import abc


class BaseDriver(object, metaclass=abc.ABCMeta):
    """基于JSON字符串处理"""
    def __init__(self, input_url, output_url, input_format=None, output_format=None, **kwargs):
        self.input_url = input_url
        self.output_url = output_url
        self.input_format = input_format
        self.output_format = output_format
        self.kwargs = kwargs

    @abc.abstractmethod
    def is_matched(self): ...

    @abc.abstractmethod
    def handle(self): ...
